package org.example.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

@Data
public class BusinessException extends RuntimeException {

    private String detail;

   private int code;
    public BusinessException(String message) {
        super(message);
        this.detail = message;
    }

    public BusinessException(String message, int code) {
        this(message);

        this.code = code;
    }



}